<script language='javascript' type='text/javascript' src="<?=base_url('upload_images')?>scripts/image.js"></script>
<link rel="stylesheet" type="text/css" href="<?=base_url('')?>application/assets/styles/cms_template.css">
<link rel="stylesheet" type="text/css" href="<?=base_url('')?>application/assets/styles/pagenav.css">
<link rel="stylesheet" type="text/css" href="<?=base_url('')?>application/assets/styles/style.css">
<link rel="stylesheet" href="<?=base_url('')?>application/modules/administrator/menus/assets/styles/theme.css" type="text/css">
<script language='javascript' type='text/javascript' src="<?=base_url('')?>application/assets/scripts/prototype.js"></script>
<script language='javascript' type='text/javascript' src="<?=base_url('')?>application/assets/scripts/common.js"></script>
<script language="javascript">
	var SITE_URL = "<?=site_url()?>";
</script>

<?if(get_flash_message()){?><center><div class="messageBox"><?=get_flash_message()?></div></center><?}?>
<form method="post" action="<?=site_url('admin/upload_images.upload_images.uploadfile')?>" name="frm_" id="frm_" enctype="multipart/form-data">
<input type="hidden" name="act" id="act" value="delete_all" />
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="0" class="text">
  <tr align="center" id="listTableHeader"> 
    <td width="55%">Name</td>
    <td width="35%">Size</td>
  </tr>
 
<?$i=1;foreach($fileattrib as $fileattrib){?>
  <tr class="row<?=($i==1)?'1':'2'?>">
    <td style="cursor:pointer" onclick="return image.clickItem('<?=h($fileattrib[0])?>','<?=$path?>')"><?=h($fileattrib[0])?></td>
    <td align="right"><?=$fileattrib[1]?></td>
  <tr>
<?$i=-$i;}?>
<tr>
	<td colspan="2" align="right" id='infoStr'>
	<input type="hidden" name="image_name"/>
	<input type="hidden" name="thumb_image_name" />
	<input type="file" size="30" name="local_file" />
	<input type="button" value="Upload" class="add_button" onclick="return image.saveItem()" />	
	</td>
</tr>
<tr>
	<td colspan="2" id='infoStr'>
<font color="#FF0000">Maximum file size=1MB. Maximum file length (plus extension) is 20 characters. Anything over that will be cut to only 20 characters. Valid file types: gif, jpg, jpeg.</font> 
	</td>
</tr>

  
</table>
</form>